<!DOCTYPE HTML>
<html>
<head>
    <style>
        body {
            margin: 0px;
            padding: 0px;
        }
    </style>
    <script type="text/javascript" src="js/Cocos2d-html5-v2.2.min.js"></script>
</head>
<body>
<canvas id="myCanvas" width="600" height="200"></canvas>
<script>
    var canvas = document.getElementById('myCanvas');
    var context = canvas.getContext('2d');

    context.beginPath();
    context.moveTo(100, 150);
    context.lineTo(450, 50);
    context.stroke();
</script>
</body>
</html>